package com.zmn.plat.model.entity.product;

import java.io.Serializable;
import java.util.Date;

/**
 * 类描述:城市价格系数实体类
 * @author linfeng
 * @since 2019/08/23/15:37
 */
public class BaseCityPriceRatio implements Serializable {

    /**
     * 主键ID
     */
    private Integer baseCityPriceRatioId;

    /**
     * 城市ID

     */
    private Integer cityId;

    /**
     * 省ID
     */
    private Integer provinceId;

    private Double cityInRatio;

    private Double cityOutRatio;

    /**
     * 服务分类ID
     */
    private Integer servCategId;

    /**
     * 产品一级分类ID
     */
    private Integer categOneId;

    /**
     * 产品一级分类保内系数
     */
    private Double categOneInRatio;

    /**
     * 产品一级分类ID保外系数
     */
    private Double categOneOutRatio;

    /**
     * 产品二级分类ID
     */
    private Integer categTwoId;

    /**
     * 产品二级分类保内系数
     */
    private Double categTwoInRatio;

    /**
     * 产品二级分类保外系数
     */
    private Double categTwoOutRatio;

    private String creater;

    private String updater;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Double getCityInRatio() {
        return cityInRatio;
    }

    public void setCityInRatio(Double cityInRatio) {
        this.cityInRatio = cityInRatio;
    }

    public Double getCityOutRatio() {
        return cityOutRatio;
    }

    public void setCityOutRatio(Double cityOutRatio) {
        this.cityOutRatio = cityOutRatio;
    }

    public Integer getServCategId() {
        return servCategId;
    }

    public void setServCategId(Integer servCategId) {
        this.servCategId = servCategId;
    }

    public Integer getCategOneId() {
        return categOneId;
    }

    public void setCategOneId(Integer categOneId) {
        this.categOneId = categOneId;
    }

    public Double getCategOneInRatio() {
        return categOneInRatio;
    }

    public void setCategOneInRatio(Double categOneInRatio) {
        this.categOneInRatio = categOneInRatio;
    }

    public Double getCategOneOutRatio() {
        return categOneOutRatio;
    }

    public void setCategOneOutRatio(Double categOneOutRatio) {
        this.categOneOutRatio = categOneOutRatio;
    }

    public Integer getCategTwoId() {
        return categTwoId;
    }

    public void setCategTwoId(Integer categTwoId) {
        this.categTwoId = categTwoId;
    }

    public Double getCategTwoInRatio() {
        return categTwoInRatio;
    }

    public void setCategTwoInRatio(Double categTwoInRatio) {
        this.categTwoInRatio = categTwoInRatio;
    }

    public Double getCategTwoOutRatio() {
        return categTwoOutRatio;
    }

    public void setCategTwoOutRatio(Double categTwoOutRatio) {
        this.categTwoOutRatio = categTwoOutRatio;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getBaseCityPriceRatioId() {
        return baseCityPriceRatioId;
    }

    public void setBaseCityPriceRatioId(Integer baseCityPriceRatioId) {
        this.baseCityPriceRatioId = baseCityPriceRatioId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseCityPriceRatio other = (BaseCityPriceRatio) that;
        return (this.getBaseCityPriceRatioId() == null ? other.getBaseCityPriceRatioId() == null : this.getBaseCityPriceRatioId().equals(other.getBaseCityPriceRatioId())
                &&this.getCityId() == null ? other.getCityId() == null : this.getCityId().equals(other.getCityId()))
                && (this.getProvinceId() == null ? other.getProvinceId() == null : this.getProvinceId().equals(other.getProvinceId()))
                && (this.getCityInRatio() == null ? other.getCityInRatio() == null : this.getCityInRatio().equals(other.getCityInRatio()))
                && (this.getCityOutRatio() == null ? other.getCityOutRatio() == null : this.getCityOutRatio().equals(other.getCityOutRatio()))
                && (this.getServCategId() == null ? other.getServCategId() == null : this.getServCategId().equals(other.getServCategId()))
                && (this.getCategOneId() == null ? other.getCategOneId() == null : this.getCategOneId().equals(other.getCategOneId()))
                && (this.getCategOneInRatio() == null ? other.getCategOneInRatio() == null : this.getCategOneInRatio().equals(other.getCategOneInRatio()))
                && (this.getCategOneOutRatio() == null ? other.getCategOneOutRatio() == null : this.getCategOneOutRatio().equals(other.getCategOneOutRatio()))
                && (this.getCategTwoId() == null ? other.getCategTwoId() == null : this.getCategTwoId().equals(other.getCategTwoId()))
                && (this.getCategTwoInRatio() == null ? other.getCategTwoInRatio() == null : this.getCategTwoInRatio().equals(other.getCategTwoInRatio()))
                && (this.getCategTwoOutRatio() == null ? other.getCategTwoOutRatio() == null : this.getCategTwoOutRatio().equals(other.getCategTwoOutRatio()))
                && (this.getCreater() == null ? other.getCreater() == null : this.getCreater().equals(other.getCreater()))
                && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBaseCityPriceRatioId() == null) ? 0 : getBaseCityPriceRatioId().hashCode());
        result = prime * result + ((getCityId() == null) ? 0 : getCityId().hashCode());
        result = prime * result + ((getProvinceId() == null) ? 0 : getProvinceId().hashCode());
        result = prime * result + ((getCityInRatio() == null) ? 0 : getCityInRatio().hashCode());
        result = prime * result + ((getCityOutRatio() == null) ? 0 : getCityOutRatio().hashCode());
        result = prime * result + ((getServCategId() == null) ? 0 : getServCategId().hashCode());
        result = prime * result + ((getCategOneId() == null) ? 0 : getCategOneId().hashCode());
        result = prime * result + ((getCategOneInRatio() == null) ? 0 : getCategOneInRatio().hashCode());
        result = prime * result + ((getCategOneOutRatio() == null) ? 0 : getCategOneOutRatio().hashCode());
        result = prime * result + ((getCategTwoId() == null) ? 0 : getCategTwoId().hashCode());
        result = prime * result + ((getCategTwoInRatio() == null) ? 0 : getCategTwoInRatio().hashCode());
        result = prime * result + ((getCategTwoOutRatio() == null) ? 0 : getCategTwoOutRatio().hashCode());
        result = prime * result + ((getCreater() == null) ? 0 : getCreater().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", baseCityPriceRatioId=").append(baseCityPriceRatioId);
        sb.append(", cityId=").append(cityId);
        sb.append(", provinceId=").append(provinceId);
        sb.append(", cityInRatio=").append(cityInRatio);
        sb.append(", cityOutRatio=").append(cityOutRatio);
        sb.append(", servCategId=").append(servCategId);
        sb.append(", categOneId=").append(categOneId);
        sb.append(", categOneInRatio=").append(categOneInRatio);
        sb.append(", categOneOutRatio=").append(categOneOutRatio);
        sb.append(", categTwoId=").append(categTwoId);
        sb.append(", categTwoInRatio=").append(categTwoInRatio);
        sb.append(", categTwoOutRatio=").append(categTwoOutRatio);
        sb.append(", creater=").append(creater);
        sb.append(", updater=").append(updater);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}